<?php
include 'head.php';
if(isset($_GET['id'])&&$_GET['id'])
{
    $result = $mysqli->query("select * from activity WHERE id = '".$_GET['id']."'");
    $row =$result->fetch_array();
}
else
{
    echo  "<script>alert('无效的活动id');window.location.href='/'</script>";

}

?>

<div class="content-top">
	<div class="container">
			<div class="single">
				<div class="col-md-8 details-top">
				<div class="details-left">
					<h3><?php echo $row['title'];?></h3>
					<img src="<?php echo $row['cover'];?>" width="260" height="498" alt="">
					
				</div>
				<div class="details-right">
				<div class="top-det">
					<h5>活动主题:</h5>
					<h6><a href="#"><?php echo $row['title'];?></a></h6>
				</div>
				<div class="top-det">
					<h5>发起人:</h5>
					<h6><a href="#"><?php echo $row['name'];?>:</a></h6>
				</div>
				<div class="top-det">
					<h5>地点:</h5>
					<h6><a href="#"><?php echo $row['destination'];?></a></h6>
				</div>
				<div class="top-det">
					<h5>具体地址:</h5>
					<h6><a href="#"><?php echo $row['address'];?></a></h6>
				</div>
				<div class="top-det">
					<h5>参加方法:</h5>
					<h6><a href="#">拨打电话报名</a></h6>
				</div>
					<p class="det">报名热线：<?php echo $row['mobile'];?></p>
				</div>
				<div class="clearfix"> </div>
				<h4>活动描述:</h4>
				<p> <?php echo $row['desc'];?></p>
				</div>
				<div class="col-md-4 side-bar">
					

					

				</div>
					<div class="clearfix"> </div>
			</div>
	</div>
</div>
<!-- content -->
<!-- content -->
<?php include 'foot.php';?>